/**
 * 
 */
package com.heer.RD.auth;

import org.apache.wicket.Request;
import org.apache.wicket.Session;
import org.apache.wicket.protocol.http.WebSession;

import com.heer.RD.projecthour.pojo.UserInfoDTO;

/**
 * @author ZhaoZehui
 *
 */
public class HeerSession extends WebSession {

	private static final long serialVersionUID = 3116567097176786097L;

	private UserInfoDTO user;
	
	public static HeerSession session() {
	        return (HeerSession)Session.get();
	    }
	
	public HeerSession(Request request) {
		super(request);
	}
	
	public boolean isSignIn() {
		return user != null;
    }

	public UserInfoDTO getUser() {
		return user;
	}

	public void setUser(UserInfoDTO sessionUser) {
		this.user = sessionUser;
	}
	
}
